home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 December: Technology Seed / ADC Seed CD - Dec'98.toast / FireWire / FireWire 1.3 SDK DR1 / Source / OpenTransport / MakeFile < prev   
Encoding:
Makefile  |  1998-09-21  |  7.0 KB  |  224 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        MakeFile
  3. #
  4. #    Contains:    Build rules for Open Transport networking driver sample
  5. #                code.
  6. #
  7. #    Version:    1.0
  8. #
  9. #    Written by:    Erik Staats
  10. #
  11. #    Copyright:    © 1996-1998 by Apple Computer, Inc., all rights reserved.
  12. #
  13. #    File Ownership:
  14. #
  15. #        DRI:                Eric W. Anderson
  16. #
  17. #        Other Contact:        Jay Lloyd
  18. #
  19. #        Technology:            FireWire
  20. #
  21. #    Writers:
  22. #
  23. #        (jkl)    Jay Lloyd
  24. #
  25. #    Change History (most recent first):
  26. #
  27. #      <FW38>     7/29/98    jkl        Updated to use latest Interfaces&Libraries. Bumped version.
  28. #      <FW37>     8/29/97    KDM        Bumped version to 1.0.1a6. Piece of Blaze 1.1a6
  29. #      <FW36>     6/19/97    GG        Bumped version to 1.0.1a5.
  30. #      <FW35>     5/29/97    GG        Bumped version to 1.01a4.
  31. #      <FW34>     5/16/97    GG        Bumped FireWire version to 1.01a3.
  32. #      <FW33>     4/29/97    GG        Bumped version to 1.0.1a2.
  33. #      <FW32>     4/10/97    GG        Bumped version to 1.0.1d1.
  34. #      <FW31>     3/27/97    GG        Bumped version to 1.0 GM.
  35. #      <FW30>     3/19/97    GG        Bumped version to 1.0b3.
  36. #      <FW29>     3/12/97    GG        Bumped version to 1.0b2.
  37. #      <FW28>     2/19/97    GG        Bumped version to 1.0a3.
  38. #      <FW27>     2/11/97    GG        Bumped copyright to 1997.
  39. #      <FW26>     2/11/97    GG        Bumped version to 1.0a2.
  40. #      <FW25>      2/4/97    GG        
  41. #      <FW24>      2/4/97    GG        Bumped version to 1.0d24.
  42. #      <FW23>     1/28/97    GG        Bumped version to 1.0d23.
  43. #      <FW22>     1/27/97    ES        Changed protocol driver file type to 'ndrv'. Fixes bug #1621930.
  44. #      <FW21>     1/21/97    GG        Bumped version to 1.0d22.
  45. #      <FW20>     1/16/97    ES        Changed FWOTDriver file type to 'fwpd'.
  46. #      <FW19>      1/3/97    ES        Removed OTVDevice from build.
  47. #      <FW18>      1/2/97    GG        Bumped Version to 1.0d21.
  48. #      <FW17>    12/20/96    GG        Bumped Version to 1.0d20.
  49. #      <FW16>     12/6/96    GG        Bumped version to 1.0d19.
  50. #      <FW15>    11/14/96    GG        Bumped version to 1.0d18.
  51. #      <FW14>    10/31/96    ES        Bumped version to 1.0d17.
  52. #      <FW13>     10/2/96    ES        Bumped version to 1.0d15.
  53. #      <FW12>     9/12/96    ES        Bumped version to 1.0d14.
  54. #      <FW11>     8/26/96    ES        Changed to use MrC and SC. This MakeFile will now only work with
  55. #                                    ETO #20 and forward.
  56. #      <FW10>     7/11/96    ES        Bumped version to 1.0d13.
  57. #       <FW9>     7/11/96    ES        Bumped version to 1.0d12.
  58. #       <FW8>     6/24/96    ES        Bumped version to 1.0d11.
  59. #       <FW7>     6/20/96    ES        Added some defs so we can do test builds using the MrC compiler.
  60. #       <FW6>     5/30/96    ES        Bumped version to 1.0d10.
  61. #       <FW5>     4/19/96    ES        Updated to version 1.0d9.
  62. #       <FW4>     4/15/96    ES        Added some dependencies to FWOTDriver.
  63. #       <FW3>     3/29/96    ES        Bumped version to 1.0d8.
  64. #       <FW2>     3/28/96    ES        Fill in contains and written by fields.
  65. #       <FW1>     3/28/96    ES        first checked in
  66. #
  67. #
  68.  
  69. ################################################################################
  70. #
  71. # Define some directories
  72. #
  73.  
  74. FWOTDriverRootDir            =    :
  75.  
  76. FWSampleDir                    =    {FWOTDriverRootDir}::
  77.  
  78. FWInterfacesDir                =    {FWSampleDir}Interfaces:
  79.  
  80. FWLibrariesDir                =    {FWSampleDir}Libraries:
  81. OTLibrariesDir                =    {FWOTDriverRootDir}Libraries:
  82.  
  83. FWOTDriverSourceDir            =    {FWOTDriverRootDir}FWOTDriver:
  84.  
  85. BuildResultsDir                =    {FWSampleDir}BuildResults:
  86. ObjectsDir                    =    {BuildResultsDir}Objects:
  87. ExtensionsDir                =    {BuildResultsDir}Extensions:
  88.  
  89. ################################################################################
  90. #
  91. # Define version info
  92. #
  93.  
  94. FWVersion                    =    1
  95. FWRevision                    =    0
  96. FWBuildStage                =    alpha
  97. FWBuildNumber                =    7
  98. FWShortVersionString        =    '"1.0.1a7"'
  99. FWLongVersionString            =    '"1.0.1a7, © 1996-1998 Apple Computer, Inc."'
  100.  
  101.  
  102. ################################################################################
  103. #
  104. # Define stuff for PowerPC compilation
  105. #
  106.  
  107. MrCOptions                    =    -opt speed                                    ∂
  108.                                 -w 2,7,35                                    ∂
  109.                                 -d TRUE=1                                    ∂
  110.                                 -d FALSE=0                                    ∂
  111.                                 -i "{FWInterfacesDir}"                        ∂
  112.                                 -i "{CIncludes}"
  113.  
  114. CPPCOptions                    =    {MrCOptions}
  115.  
  116. CPPC                        =    MrC
  117.  
  118. LinkPPC                        =    PPCLink
  119.  
  120.  
  121. ################################################################################
  122. #
  123. # Define stuff for rez
  124. #
  125.  
  126. RezOptions                    =    -d FWVersion={FWVersion}                    ∂
  127.                                 -d FWRevision={FWRevision}                    ∂
  128.                                 -d FWBuildStage={FWBuildStage}                ∂
  129.                                 -d FWBuildNumber={FWBuildNumber}            ∂
  130.                                 -d FWShortVersionString={FWShortVersionString}    ∂
  131.                                 -d FWLongVersionString={FWLongVersionString}
  132.  
  133.  
  134. ################################################################################
  135. #
  136. # Open Transport driver
  137. #
  138.  
  139. "{ObjectsDir}DLPIRoutines.c.o"    ƒ                                            ∂
  140.                             "{FWOTDriverSourceDir}DLPIRoutines.c"            ∂
  141.                             "{FWOTDriverSourceDir}DLPIRoutines.h"            ∂
  142.                             "{FWOTDriverSourceDir}EntryPoints.h"            ∂
  143.                             "{FWOTDriverSourceDir}HWSpecific.h"
  144.     {CPPC}                                                                    ∂
  145.         "{FWOTDriverSourceDir}DLPIRoutines.c"                                 ∂
  146.         -i "{FWOTDriverSourceDir}"                                            ∂
  147.         {CPPCOptions}                                                        ∂
  148.         -o {Targ}
  149.  
  150. "{ObjectsDir}EntryPoints.c.o"    ƒ                                            ∂
  151.                             "{FWOTDriverSourceDir}EntryPoints.c"            ∂
  152.                             "{FWOTDriverSourceDir}DLPIRoutines.h"            ∂
  153.                             "{FWOTDriverSourceDir}EntryPoints.h"            ∂
  154.                             "{FWOTDriverSourceDir}HWSpecific.h"
  155.     {CPPC}                                                                    ∂
  156.         "{FWOTDriverSourceDir}EntryPoints.c"                                 ∂
  157.         -i "{FWOTDriverSourceDir}"                                            ∂
  158.         {CPPCOptions}                                                        ∂
  159.         -o {Targ}
  160.  
  161. "{ObjectsDir}HWSpecific.c.o"    ƒ                                            ∂
  162.                             "{FWOTDriverSourceDir}HWSpecific.c"                ∂
  163.                             "{FWOTDriverSourceDir}DLPIRoutines.h"            ∂
  164.                             "{FWOTDriverSourceDir}EntryPoints.h"            ∂
  165.                             "{FWOTDriverSourceDir}HWSpecific.h"
  166.     {CPPC}                                                                    ∂
  167.         "{FWOTDriverSourceDir}HWSpecific.c"                                 ∂
  168.         -i "{FWOTDriverSourceDir}"                                            ∂
  169.         {CPPCOptions}                                                        ∂
  170.         -o {Targ}
  171.  
  172. "{ExtensionsDir}FWOTDriver"    ƒƒ                                                ∂
  173.                             "{ObjectsDir}DLPIRoutines.c.o"                    ∂
  174.                             "{ObjectsDir}EntryPoints.c.o"                    ∂
  175.                             "{ObjectsDir}HWSpecific.c.o"                    ∂
  176.                             "{FWOTDriverSourceDir}FWOTDriver.exp"
  177.     {LinkPPC}                                                                ∂
  178.         -t 'ndrv'                                                            ∂
  179.         -c 'fw  '                                                            ∂
  180.         -xm sharedlibrary                                                    ∂
  181.         -w                                                                     ∂
  182.         -@export "{FWOTDriverSourceDir}FWOTDriver.exp"                        ∂
  183.         -init InitCFMRoutine                                                ∂
  184.         -term TerminateCFMRoutine                                            ∂
  185.         "{ObjectsDir}DLPIRoutines.c.o"                                        ∂
  186.         "{ObjectsDir}EntryPoints.c.o"                                        ∂
  187.         "{ObjectsDir}HWSpecific.c.o"                                        ∂
  188.         "{SharedLibraries}InterfaceLib"                                        ∂
  189.         "{SharedLibraries}StdCLib"                                            ∂
  190.         "{SharedLibraries}NameRegistryLib"                                    ∂
  191.         "{SharedLibraries}DriverServicesLib"                                ∂
  192.         "{SharedLibraries}PCILib"                                            ∂
  193.         "{FWLibrariesDir}FWServicesLib"                                        ∂
  194.         "{SharedLibraries}OpenTptModuleLib"                                    ∂
  195.         "{PPCLibraries}PPCCRuntime.o"                                        ∂
  196.          -o {Targ}
  197.  
  198. "{ExtensionsDir}FWOTDriver"    ƒƒ                                                ∂
  199.                             "{ObjectsDir}DLPIRoutines.c.o"                    ∂
  200.                             "{ObjectsDir}EntryPoints.c.o"                    ∂
  201.                             "{ObjectsDir}HWSpecific.c.o"                    ∂
  202.                             "{FWOTDriverSourceDir}FWOTDriver.exp"            ∂
  203.                             "{FWOTDriverSourceDir}FWOTDriver.r"                ∂
  204.                             "{FWOTDriverRootDir}MakeFile"
  205.     Rez                                                                        ∂
  206.         {RezOptions}                                                        ∂
  207.         "{FWOTDriverSourceDir}FWOTDriver.r"                                    ∂
  208.         -a                                                                    ∂
  209.         -o {Targ}
  210.  
  211. "{ExtensionsDir}FWOTDriverLib"    ƒƒ                                            ∂
  212.                             "{ExtensionsDir}FWOTDriver"
  213.     Duplicate                                                                ∂
  214.         -y                                                                    ∂
  215.         "{ExtensionsDir}FWOTDriver"                                            ∂
  216.         {Targ}
  217.     SetFile                                                                    ∂
  218.         -t 'shlb'                                                            ∂
  219.         {Targ}
  220.  
  221. FWOTDriver    ƒ                                                                ∂
  222.                         "{ExtensionsDir}FWOTDriver"                            ∂
  223.                         "{ExtensionsDir}FWOTDriverLib"
  224.